package com.opdar.athena.mapper;

import com.opdar.athena.entities.MessageEntity;
import com.opdar.plugins.mybatis.core.IBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;


/**
 * Created by shiju on 2017/1/24.
 */
public interface MessageMapper extends IBaseMapper<MessageEntity> {
    List<MessageEntity> selectList2(@Param("message")MessageEntity messageEntity, @Param("ltTime") Timestamp ltTime, @Param("gtTime") Timestamp gtTime);
    int updateReadStat(@Param("message")MessageEntity messageEntity, @Param("ltTime") Timestamp ltTime, @Param("gtTime") Timestamp gtTime);
    int selectUnReadCount(@Param("message")MessageEntity messageEntity);
}
